<div ng-init="init();" class="kmi-layout-content SMT2701-content">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="header-title" ng-bind="'SMT2701.title' | translate"></div>
        <div class="header-logo"></div>
    </div>
    <div class="kmi-layout-main-content">
        <div class="kmi-layout-page">
            <div class="workSearchPanel">
                <div class="kmi-text-fields">
                    <label class="label" ng-bind="'SMT2701.wo_no' | translate"></label>
                    <input ng-model="wo_no" ng-click="loadWoNoList();" readonly="readonly"></input>
                    <div class="tip search" ng-click="loadWoNoList();"><img src="image/icons/search.png"></img> </div>
                </div>
            </div>
            <div class="panel-top">
                <div class="kmi-text-fields" >
                    <label class="label" ng-bind="'SMT2701.wo_no' | translate"></label>
                    <label class="value" ng-bind="workNo_info.wo_no"></label>
                    <label class="label" ng-bind="'SMT2701.prdct_no' | translate"></label>
                    <label class="value" ng-bind="workNo_info.prdct_no"></label>
                </div>
                <div class="kmi-text-fields" >
                    <label class="label" ng-bind="'SMT2701.prdct_name' | translate"></label>
                    <label class="value" ng-bind="workNo_info.prdct_name"></label>
                    <label class="label" ng-bind="'SMT2701.prdct_spec' | translate"></label>
                    <label class="value" ng-bind="workNo_info.prdct_spec"></label>
                </div>
            </div>
            <div class="workSearchPanel">
                <div class="kmi-text-fields">
                    <label class="label" ng-bind="'SMT2701.reel_no' | translate"></label>
                    <input ng-model="reel_no" ng-click="loadReelNoList();" ng-disabled="workNo_info.wo_no ==''" readonly="readonly"></input>
                    <div class="tip search" ng-click="loadReelNoList();" ng-disabled="workNo_info.wo_no ==''"><img src="image/icons/search.png"></img> </div>
                </div>
            </div>
            <div class="panel-top">
                <div class="kmi-text-fields" >
                    <label class="label" ng-bind="'SMT2701.reel_no' | translate"></label>
                    <label class="value" ng-bind="reelNo_info.reel_no"></label>
                    <label class="label" ng-bind="'SMT2701.mnf' | translate"></label>
                    <label class="value" ng-bind="reelNo_info.mnf"></label>
                </div>
                <div class="kmi-text-fields" >
                    <label class="label" ng-bind="'SMT2701.mtrl_no' | translate"></label>
                    <label class="value" ng-bind="reelNo_info.material_no"></label>
                    <label class="label" ng-bind="'SMT2701.reel_num' | translate"></label>
                    <label class="value" ng-bind="reelNo_info.actual_qty"></label>
                </div>
            </div>
            <div class="contentPanel">
                <div class="panel">
                    <div class="panel-bottom">
                        <div class="workInfoPanel">
                            <!-- 晶片規格 -->
                            <div class="kmi-text-fields" >
                                <label class="label" ng-bind="'SMT2701.chip_spec' | translate"></label>
                                <input style="flex: 70%;" ng-model = "chip_detail.ic_format"></input>
                                <div class="kmi-text-fields" style="flex: 30%;margin-bottom:0px;">
                                    <label class="label" ng-bind="'SMT2701.print_tag' | translate"></label>
                                    <div class="check-point-switch" ng-class="{'is-selected':is_print=='1'}" ng-click=" print_or_not();">
                                        <div style="width:24px;height:24px;"></div>
                                    </div>
                                </div>
                            </div>
                            <!-- 新物料編號 -->
                            <div class="kmi-text-fields" >
                                <label class="label" ng-bind="'SMT2701.new_mtrl_no' | translate"></label>
                                <input style="flex:70%;" ng-model='chip_detail.new_material_no' ng-click="loadNewMtrlNoList();" readonly="readonly"></input>
                                <div class="tip search" ng-click="loadNewMtrlNoList();"><img src="image/icons/search.png"></img> </div>
                                <div class="kmi-text-fields" style="flex: 30%;"></div>
                            </div>
                            <!-- 燒錄程序 -->
                            <div class="kmi-text-fields" >
                                <label class="label" ng-bind="'SMT2701.rmk_prcdure' | translate"></label>
                                <input style="flex:70%;" ng-model="chip_detail.burn_no"></input>
                                <div class="kmi-text-fields" style="flex: 30%;"></div>
                            </div>
                            <!-- 程序教驗碼 -->
                            <div class="kmi-text-fields" >
                                <label class="label" ng-bind="'SMT2701.code_check_no' | translate"></label>
                                <input style="flex:70%;"  ng-model="chip_detail.burn_value"></input>
                                <div class="kmi-text-fields" style="flex: 30%;"></div>
                            </div>
                            <!-- 燒錄數量 -->
                            <div class="kmi-text-fields">
                                <label class="label" ng-bind="'SMT2701.rmk_num' | translate"></label>
                                <input style="flex:70%;" readonly="readonly" ng-model="chip_detail.burn_qty" ng-click="input_burn_qty($event)"></input>
                                <div class="kmi-text-fields" style="flex: 30%;"></div>
                            </div>
                            <!-- 新捲料編號 -->
                            <div class="kmi-text-fields" ng-show="reelNo_info.actual_qty && chip_detail.burn_qty && reelNo_info.actual_qty > chip_detail.burn_qty ">
                                <label class="label" ng-bind="'SMT2701.new_reel_no' | translate"></label>
                                <input style="flex:70%;"  ng-model="chip_detail.new_reel_no"></input>
                                <div class="kmi-text-fields" style="flex: 30%;"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="kmi-layout-footer">
            <button class="mdl-button mdl-js-button mdl-button--fab mdl-shadow--custom mdl-button--custom1"
                    ng-click="confirm();" ng-disabled="selectedList.length==0">
                <i class="material-icons">done</i>
            </button>
        </div>
    </div>
</div>
